package org.example.classtopia.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.classtopia.Model.Entity.PostCollections;

import java.util.List;
import java.util.Map;

@Mapper
public interface PostCollectionsMapper {
    void insert(PostCollections postCollections);
    void delete(Long postId, Long userId);
    PostCollections find(Long postId, Long userId);
    List<PostCollections> findAll(Map<String, Object> params);
    int countSearchPosts(Long userId);
}
